<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'article-form',
	'enableAjaxValidation'=>false,

'htmlOptions'=>array('enctype'=>'multipart/form-data')
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'text'); ?>
		<?php echo $form->textArea($model,'text',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'text'); ?>
	</div>
	<div class="row">
		<label>Upload Image:</label>
		<?php echo $form->fileField($model,'imageUpload'); ?>
		<?php echo $form->error($model,'imageUpload'); ?>
	</div>
		<div class="row">
		<label>Upload Thumb: </label>(Files will not be resized if thumb is uploaded)
		<?php echo $form->fileField($model,'thumbUpload'); ?>
		<?php echo $form->error($model,'thumbUpload'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'author'); ?>
		<?php echo $form->textField($model,'author',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'author'); ?>
	</div>
	
		<div class="row">
		<?php echo $form->labelEx($model,'showWeb'); ?>
		<?php echo $form->checkBox($model,'showWeb'); ?>
		<?php echo $form->error($model,'showWeb'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'showIphone'); ?>
		<?php echo $form->checkBox($model,'showIphone'); ?>
		<?php echo $form->error($model,'showIphone'); ?>
	</div>
		<div class="row">
		<?php echo $form->labelEx($model,'top100'); ?>
		<?php echo $form->checkBox($model,'top100'); ?>
		<?php echo $form->error($model,'top100'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->